﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ECare.BUS.Data
{
    public class FormulaInfo
    {

        public int FormulaId { get; set; }
        public string FormulaName { get; set; }
        public string FormulaCode { get; set; }

        public int Create_By { get; set; }
        public DateTime DateCreated { get; set; }


        public int Update_By { get; set; }
        public DateTime DateUpdated { get; set; }

        public int Deactive_By { get; set; }
        public DateTime DateDeactive { get; set; }

        public bool IsActive { get; set; }
        public string FormulaRemark { get; set; }


        public List<FormulaDetail> Details { get; set; }


        public override string ToString()
        {
            return this.FormulaName;

            //return base.ToString();
        }
    }

    public class FormulaDetail
    {
        public int FormulDetailId { get; set; }

        public int ResourceId { get; set; }

        public string unit { get; set; }
        public int FormulaId { get; set; }
        public int Order { get; set; }
        public decimal Number { get; set; }// 需求数量

        public int Create_By { get; set; }
        public DateTime DateCreated { get; set; }


        public int Update_By { get; set; }
        public DateTime DateUpdated { get; set; }

        public int Deactive_By { get; set; }
        public DateTime DateDeactive { get; set; }

        public bool IsActive { get; set; }


        public int CarNumber { get; set; }
        public bool Ischangecar { get; set; }


    }
}
